class CreateSections < ActiveRecord::Migration
  def self.up
    create_table :sections do |t|
      t.string :name
      t.string :short_name
      t.boolean :user_only
      t.boolean :active
      t.integer :parent_section_id, :null => true
      t.string :controller
      t.string :action      
      t.integer :section_order
      t.string :api_controller
      t.string :section_container
      t.string :section_pagination
      t.string :event_color

      t.timestamps
    end
  end

  def self.down
    drop_table :sections
  end
end
